var loginService = (function () {
    function loginService(http, route) {
        this.http = http;
        this.route = route;
    }
    loginService.prototype.login = function (email, password) {
        return this.http({
            method: "POST",
            url: this.route.getUrl("login"),
            data: {
                email: email,
                password: password
            }
        });
    };
    return loginService;
}());
app.service("loginService", ['$http', 'routeService', loginService]);
